package com.two.service.order.orderservice;


import com.baomidou.mybatisplus.extension.service.IService;
import com.two.common.util.CommonResult;
import com.two.service.order.entity.Orders;
import com.two.service.order.vo.GoodsVo;
import com.two.service.order.vo.PinglunVo;
import com.two.service.order.vo.RestautantVo;
import com.two.service.order.vo.ShopcarVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 汪瑞明
 * @since 2022-09-01
 */
public interface IOrdersService extends IService<Orders> {
   // CommonResult buy(GoodsVo goodsVo);

    CommonResult search(Integer currentPage, Integer pageSize, Orders orderVo, String token);



    CommonResult delete(String id);

    CommonResult orderDetails(String ordersid);

    CommonResult payMoney(String totalPrice, ShopcarVo[] shopcar);

    CommonResult updateState(String tradeNo, String status, String gmtPayment, String alipayTradeNo);

    Orders getByNo(String traceNo);

    CommonResult updatePayState(String traceNo, String status, String now);

    CommonResult shopPay(String totalPrice, RestautantVo[] restautantVo);

    CommonResult confirmPay(String token);

    CommonResult findOrders(String token);

    CommonResult deleteByOrdersId(String ordersid);

    void updateCommentStatus(PinglunVo pinglunVo);

    CommonResult orderDetailsByRid(String token, String ordersid);

    void  updateProductCode(String oid);

    CommonResult recipt(String ordersid);

    CommonResult findMoney(String token);

    CommonResult confirmOrders(Orders[] orders);

    CommonResult searchSuccessOrders(Integer currentPage, Integer pageSize, Orders orderVo, String token);
    // CommonResult findMoney();
}
